package com.ian.homework;

/**
 * 上网套餐类
 */
public class InternetPackage {
    private int iPackageData;
    private float fCost;

    public InternetPackage(int iPackageData, float fCost) {
        this.iPackageData = iPackageData;
        this.fCost = fCost;
    }

    public InternetPackage() {
    }

    public int getiPackageData() {
        return iPackageData;
    }

    public void setiPackageData(int iPackageData) {
        this.iPackageData = iPackageData;
    }

    public float getfCost() {
        return fCost;
    }

    public void setfCost(float fCost) {
        this.fCost = fCost;
    }

    public void show() {
        System.out.println("上网流量:" + iPackageData);
        System.out.println("上网资费:" + fCost);
    }
}
